import axios from "axios";


export const request = axios.create({
    baseURL: '/ALY',
    timeout: 60000,
    headers: {
        contentType: "application/json",
    }
});


const tts = function(params) {
    return new Promise((resolve, reject) => {
      request.post("/tts", params)
        .then(function(response) {
          resolve(response.data);
        })
        .catch(function(error) {
          console.log(error);
          reject(error);
        });
    });
  }






export{ 
  tts 
};